package com.project.bean;

import java.time.LocalDate;

/**
 * 设施实体类
 */
public class RecordBean {
    /**设施编号*/
    private Integer recId;
    /**损坏描述*/
    private String recDescription;
    /**报损日期*/
    private LocalDate recDate = LocalDate.now();
    /**是否解决*/
    private String recSituation = "未解决";
    /**所属房间*/
    private RoomBean roomBean;

    public RecordBean() {
    }

    public RecordBean(String recDescription) {
        this.recDescription = recDescription;
    }

    public Integer getRecId() {
        return recId;
    }

    public void setRecId(Integer recId) {
        this.recId = recId;
    }

    public String getRecDescription() {
        return recDescription;
    }

    public void setRecDescription(String recDescription) {
        this.recDescription = recDescription;
    }

    public LocalDate getRecDate() {
        return recDate;
    }

    public void setRecDate(LocalDate recDate) {
        this.recDate = recDate;
    }

    public String getRecSituation() {
        return recSituation;
    }

    public void setRecSituation(String recSituation) {
        this.recSituation = recSituation;
    }

    public RoomBean getRoomBean() {
        return roomBean;
    }

    public void setRoomBean(RoomBean roomBean) {
        this.roomBean = roomBean;
    }

    @Override
    public String toString() {
        return "RecordBean{" +
                "recId=" + recId +
                ", recDescription='" + recDescription + '\'' +
                ", recDate=" + recDate +
                ", recSituation='" + recSituation + '\'' +
                ", roomBean=" + roomBean +
                "}\n";
    }
}
